package org.dromara.wms.domain;

  import org.dromara.common.tenant.core.TenantEntity;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import jakarta.validation.constraints.*;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 生产流水线对象 wms_workshop
 *
 * @author wenrui Su
 * @date 2024-05-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wms_workshop")
public class WmsWorkshop extends TenantEntity {

@Serial
private static final long serialVersionUID=1L;


  @ExcelProperty(value = "主键")
  @NotNull(message = "主键不能为空", groups = { EditGroup.class })
  @TableId(value = "id")
  private Long id;

  @ExcelProperty(value = "名称")
  @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
  private String name;

  @ExcelProperty(value = "面积")
  private Double area;

  @ExcelProperty(value = "负责人")
  private Long userId;

  @ExcelProperty(value = "状态")
  @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
  private String status;

  @ExcelProperty(value = "仓库Id")
  @NotBlank(message = "仓库不能为空")
  private Long whId;

  @ExcelProperty(value = "备注")
  private String remark;
}
